home *** CD-ROM | disk | FTP | other *** search
/ Click 5 / Click 5.iso / data / game5.dat / scripts / frame_55 / DoAction.as
Text File  |  2002-11-22  |  959b  |  52 lines

  1. c = col.length;
  2. count = "0";
  3. f = "1";
  4. while(count < c and f == 1)
  5. {
  6.    count = Number(count + 1);
  7.    if(col.substr(count,1) == "r")
  8.    {
  9.       f = "0";
  10.    }
  11. }
  12. col = col.substr(1,count - 2);
  13. stmp = count;
  14. count = "0";
  15. while(count < col)
  16. {
  17.    count = Number(count) + 1;
  18.    f = "1";
  19.    countt = "0";
  20.    stmp = eval("n" + count);
  21.    c = stmp.length;
  22.    while(countt < c and f == 1)
  23.    {
  24.       countt = Number(countt) + 1;
  25.       if(stmp.substr(countt,1) == "\\")
  26.       {
  27.          f = "0";
  28.       }
  29.    }
  30.    set("n" + count,stmp.substr(1,countt - 2));
  31.    f = "1";
  32.    countt = "0";
  33.    stmp = eval("sc" + count);
  34.    c = stmp.length;
  35.    while(countt < c and f == 1)
  36.    {
  37.       countt = Number(countt) + 1;
  38.       if(stmp.substr(countt,1) == "\\")
  39.       {
  40.          f = "0";
  41.       }
  42.    }
  43.    set("sc" + count,stmp.substr(1,countt - 2));
  44. }
  45. if(col == 100)
  46. {
  47.    if(score < eval("sc" + col))
  48.    {
  49.       gotoAndPlay(57);
  50.    }
  51. }
  52.